package com.lxy.controller;

import com.lxy.model.Student;
import com.lxy.model.User;
import org.springframework.web.bind.annotation.*;

@RequestMapping("/student")
@RestController
public class StudentController {

    @GetMapping("/list")
    public String list(String name){
        System.out.println("list student");
        System.out.println(name);
        return "student-list";
    }

    @PostMapping("/add")
    public String add(@RequestBody Student student){
        System.out.println("add student");
        System.out.println(student);
        return "student-add";
    }
}


